//
//  FindDetailModel.m
//  ToYourHeartNews
//
//  Created by XJing on 16/1/22.
//  Copyright © 2016年 www.lanou3g.com 蓝鸥. All rights reserved.
//

#import "FindDetailModel.h"

@implementation FindDetailModel
- (void)dealloc
{
    [_pk release];
    [_autherName release];
    [_autherImg release];
    [_date release];
    [_content release];
    [_comment_count release];
    [_hot_num release];
    [_like_num release];
    [_imgPath release];
    [_weburl release];
    [_width release];
    [_height release];
    [super dealloc];
}
-(void)setValue:(id)value forUndefinedKey:(NSString *)key
{
    if ([key isEqualToString:@"auther"]) {
        self.autherName = value[@"name"];
        self.autherImg = value[@"icon"];
    }
    if ([key isEqualToString:@"medias"]) {
        self.imgPath = [[value firstObject] objectForKey:@"s_url"];
        self.width = [[value firstObject] objectForKey:@"w"];
        self.height = [[value firstObject] objectForKey:@"h"];
    }
}
@end
